@@ -111,13 +111,6 @@ def get_new_files(lensman, session, maxt): |
||
| 111 | 111 |
return news |
| 112 | 112 |
|
| 113 | 113 |
|
| 114 |
-def print_qrcode(lensman, session): |
|
| 115 |
- # Call ``C`` to Connect Printer |
|
| 116 |
- # Param |
|
| 117 |
- # :: session |
|
| 118 |
- pass |
|
| 119 |
- |
|
| 120 |
- |
|
| 121 | 114 |
class HelloHandler(RequestHandler): |
| 122 | 115 |
def get(self): |
| 123 | 116 |
self.write('Hello Tornado')
|
@@ -145,8 +138,6 @@ class SessionEndHandler(RequestHandler): |
||
| 145 | 138 |
|
| 146 | 139 |
# Change Mode to 0700 |
| 147 | 140 |
os.chmod(get_session_root(lensman, session), 0700) |
| 148 |
- # Print QRCode |
|
| 149 |
- print_qrcode(lensman, session) |
|
| 150 | 141 |
|
| 151 | 142 |
self.write({
|
| 152 | 143 |
'status': 200, |
@@ -210,19 +201,6 @@ class DeletePhotoHandler(RequestHandler): |
||
| 210 | 201 |
}) |
| 211 | 202 |
|
| 212 | 203 |
|
| 213 |
-class PrintQRCodeHandler(RequestHandler): |
|
| 214 |
- def post(self): |
|
| 215 |
- lensman = self.get_argument('lensman', '')
|
|
| 216 |
- session = self.get_argument('session', '')
|
|
| 217 |
- |
|
| 218 |
- # Print QRCode |
|
| 219 |
- print_qrcode(lensman, session) |
|
| 220 |
- |
|
| 221 |
- self.write({
|
|
| 222 |
- 'status': 200, |
|
| 223 |
- }) |
|
| 224 |
- |
|
| 225 |
- |
|
| 226 | 204 |
handlers = [ |
| 227 | 205 |
(r'/', HelloHandler), |
| 228 | 206 |
(r'/session_start', SessionStartHandler), |
@@ -230,7 +208,6 @@ handlers = [ |
||
| 230 | 208 |
(r'/fetch_thumbnail', FetchThumbnailHandler), |
| 231 | 209 |
(r'/fetch_origin', FetchOriginHandler), |
| 232 | 210 |
(r'/delete_photo', DeletePhotoHandler), |
| 233 |
- (r'/print_qrcode', PrintQRCodeHandler), |
|
| 234 | 211 |
(r'/static/(.*)', StaticFileHandler, {'path': ROOT_PATH}),
|
| 235 | 212 |
] |
| 236 | 213 |
|